package cn.wgx.modules.sys.entity.mapper;

import cn.wgx.modules.sys.entity.SysPermission;
import cn.wgx.modules.sys.entity.SysPermissionExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysPermissionMapper {

    List<SysPermission> selectByUserId(Integer user_id);

    List<SysPermission> selectByRoleId(Integer role_id);

    /**
     *
     * @mbg.generated Tue May 28 17:25:14 CST 2019
     */
    long countByExample(SysPermissionExample example);

    /**
     *
     * @mbg.generated Tue May 28 17:25:14 CST 2019
     */
    int deleteByExample(SysPermissionExample example);

    /**
     *
     * @mbg.generated Tue May 28 17:25:14 CST 2019
     */
    int deleteByPrimaryKey(Integer permission_id);

    /**
     *
     * @mbg.generated Tue May 28 17:25:14 CST 2019
     */
    int insert(SysPermission record);

    /**
     *
     * @mbg.generated Tue May 28 17:25:14 CST 2019
     */
    int insertSelective(SysPermission record);

    /**
     *
     * @mbg.generated Tue May 28 17:25:14 CST 2019
     */
    List<SysPermission> selectByExample(SysPermissionExample example);

    /**
     *
     * @mbg.generated Tue May 28 17:25:14 CST 2019
     */
    SysPermission selectByPrimaryKey(Integer permission_id);

    /**
     *
     * @mbg.generated Tue May 28 17:25:14 CST 2019
     */
    int updateByExampleSelective(@Param("record") SysPermission record, @Param("example") SysPermissionExample example);

    /**
     *
     * @mbg.generated Tue May 28 17:25:14 CST 2019
     */
    int updateByExample(@Param("record") SysPermission record, @Param("example") SysPermissionExample example);

    /**
     *
     * @mbg.generated Tue May 28 17:25:14 CST 2019
     */
    int updateByPrimaryKeySelective(SysPermission record);

    /**
     *
     * @mbg.generated Tue May 28 17:25:14 CST 2019
     */
    int updateByPrimaryKey(SysPermission record);

}